package com.zhuoyue.zhtj;

import com.eit.eitsite.common.utils.HttpUtils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * Created by kaygreen on 2017/9/2.
 */
public class Testss {
    public static void main(String[] args) throws ParseException {
//        System.out.println(HttpUtils.httpGet("http://student.szpt.edu.cn/classroom/index.php/UserApi/getCourse?num=15240030&xn=2017&xq=1"));
//        System.out.println(new Random().nextInt(3));
//        System.out.println(new Date().getTime());
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        long t=sdf.parse("2017-10-24").getTime()-sdf.parse("2017-9-4").getTime();
                int a= (int) (t/1000/3600/24/7);
        System.out.println(a);
    }
}
